package cn.tedu.car.backend.order.pojo.vo;

import cn.tedu.car.backend.order.enums.OrderStatus;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class OrderVO {

        @ApiModelProperty(value = "订单id")
        String orderNo;
        @ApiModelProperty(value = "消费者id")
        Long customerId;
        @ApiModelProperty(value = "车辆id")
        Long vehicleId;
        @ApiModelProperty(value = "取出站点id")
        Long fetchStationId;
        @ApiModelProperty(value = "还车站点id")
        Long backStationId;
        @ApiModelProperty(value = "取车时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
        Date gmtFetch;
        @ApiModelProperty(value = "还车时间")
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
        Date gmtBack;
        @ApiModelProperty(value = "订单状态")
        OrderStatus orderStatus;
        @ApiModelProperty(value = "支付状态")
        String payStatus;
        @ApiModelProperty(value = "支付方式")
        String payMethod;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
        @ApiModelProperty(value = "创建时间")
        Date createTime;


}
